<%@page import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@page import="net.tanesha.recaptcha.ReCaptcha"%>
<%
String[] listError = (String[]) request.getAttribute("listError");
String success = (String) request.getAttribute("success");
%>

<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="Profile" />
	<jsp:param name="description" value="" />
	<jsp:param name="keywords" value="" />
	<jsp:param name="page" value="home" />
</jsp:include>

<div id="content">
        	<div id="content_inner">
            	<div id="maincontent">
                    <div id="profile">
                        <h2 class="title">Edit profile</h2>
                        <div>
                            <div class="left">
                                <ul class="option">
                                    <li><a href="/get-auto-content">Get Auto Content</a></li>
                                    <li><a href="/get-special-content">Get Special Content</a></li>
                                    <li><a href="/manager-blog">Manager Blog</a></li>
                                    <li><a href="/create-blog">Create new blog</a></li>
                                    <li><a href="/logout">Logout</a></li>
                                </ul>
                            </div>
                            <div class="right">
                                <div id="userform">
                                    <h2 class="title">Change password</h2>
                                    <form method="post" action="" name="">
                                    	<%=success!=null?"<span style=\"color: #D54E21;display: block;margin-bottom: 20px;\">"+success+"</span>":"" %>
                                        <div>
                                            <label>
                                                Old Password
                                                <br />
                                                <input class="input" type="password" name="oldpassword"/>
                                                <%=listError[0]!=null?"<div class=\"error\">"+listError[0]+"</div>":"" %>
                                            </label>
                                        </div>
                                        <div>
                                            <label>
                                                New password
                                                <br />
                                                <input class="input" type="password" name="newpassword"/>
                                                <%=listError[1]!=null?"<div class=\"error\">"+listError[1]+"</div>":"" %>
                                            </label>
                                        </div>
                                        <div>
                                            <label>
                                                Confirm New password
                                                <br />
                                                <input class="input" type="password" name="repassword"/>
                                                <%=listError[2]!=null?"<div class=\"error\">"+listError[2]+"</div>":"" %>
                                            </label>
                                        </div>
                                        <div>
                                            <input type="submit" value="Change">
                                        </div>
                                    </form>
                                </div>                         
                            </div>
                            <div class="clearbreak"></div>
                        </div>                                      
                    </div>
                </div>
            </div>
        </div>

<%@ include file='/layout/footer.jsp'%>